package com.mybrothers.controller;

import javax.servlet.http.HttpServletRequest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 *  
 * @author Administrator
 *
 */
@Controller  
@RequestMapping("/main")  
public class MainController {  
	public Logger logger = LoggerFactory.getLogger(this.getClass().getName());
    
    @RequestMapping("/modules")
    public String studentList(HttpServletRequest request){
    	//TODO:加载主页资源模块
    	
        logger.info("加载主页模块");
        return "/index";  
    }

//    @RequestMapping("/center")
//    public String studentCenterList(HttpServletRequest request){
//    	request.setAttribute("center", "/WEB-INF/moban/main.jsp");
//        logger.info("学生列表跳转");
//        return "/main";  
//    }
}